package org.zpmis.domain.order.dao;

import org.apache.ibatis.annotations.Param;
import org.zpmis.common.mapper.CrudMapper;
import org.zpmis.domain.order.model.Order;
import org.zpmis.domain.order.vo.OrderCountReceived;
import org.zpmis.domain.order.vo.OrderReceived;

import java.util.List;
import java.util.Map;

public interface OrderMapper extends CrudMapper<Order> {

    /**
     * 获取系统订单数量
     * @return
     */
    Long getOrderCount(Map<String,Object> param);

    /**
     * 订单款项统计
     * @param param
     * @return
     */
    List<OrderReceived> getOrderReceived(Map<String,Object> param);

    /**
     * 统计订单数量 按日分组
     * @param param
     * @return
     */
    List<OrderCountReceived> getOrderCountReceived(Map<String,Object> param);
}